/****************************************************************
 *Author:       zxx
 *UnityVersion：2019.4.1f1
 *Date:         2020/08/01 15:41:07
 *Description:    
*****************************************************************/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;


public class ThreeLianQuesPanel : MonoBehaviour {

    private Button BtnA,BtnB;

    private void Awake()
    {
        BtnA = transform.Find("BtnA").GetComponent<Button>();
        BtnA.onClick.AddListener(BtnAOnClik);

        BtnB = transform.Find("BtnB").GetComponent<Button>();
        BtnB.onClick.AddListener(BtnBOnClick);

       

    }

    private void Start()
    {
        if (GameMananger.Instance.isSanLian == 1)
        {
            gameObject.SetActive(false);
        }
    }

    private void BtnAOnClik()
    {
        GameMananger.Instance.isSanLian = 1;
        gameObject.SetActive(false);
    }

    private void BtnBOnClick()
    {
        GameMananger.Instance.isSanLian = 0;
        Application.Quit();
    }
}

